import type { MetroDetail } from "@dci/core"; import { cache } from "react"; import { api, type ApiResult } from "@/lib/api"; /** Per-request memoised metro loader shared by layout (existence gate), metadata, page and OG image. */ export const getMetro = cache(async (slug: string, fPage = 1): Promise> => api.metro(slug, fPage > 1 ? { fPage } : undefined));